package com.eastfair.venueservice.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.venueservice.entity.WorkOrder;

import com.eastfair.venueservice.vo.WorkOrderVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 工单
 * </p>
 *
 * @author linan
 * @date 2022-10-14
 */
@Repository
public interface WorkOrderMapper extends SuperMapper<WorkOrder> {

    /**
     * 获取其他状态
     * @param queryWrapper
     * @return
     */
    List<String> getDistinctStatus(@Param(Constants.WRAPPER)
                                           QueryWrapper<WorkOrder> queryWrapper);

    /**
     * 查询配套服务商的工单
     * @param exhibitionManageId
     * @return
     */
    List<WorkOrderVO> queryFinishCompany(Long exhibitionManageId);
}
